package com.gitee.baqkft.code.core.handler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.gitee.baqkft.code.core.util.FreemarkerUtils;

import freemarker.template.Configuration;

/**
 * 处理器支持
 * @author chenmingcai
 * @date 2018年6月4日 下午4:06:04 
 *
 */

public class AbstractGenHandler
{
	protected final Logger logger = LoggerFactory.getLogger(getClass());
	
	/**
	 * freeMarker配置
	 */
	protected Configuration freemarkerConfig;
	
	public AbstractGenHandler()
	{
		freemarkerConfig = FreemarkerUtils.defaultConfiguration();
		freemarkerConfig.setClassLoaderForTemplateLoading(Thread.currentThread().getContextClassLoader(), "template");
	}
}
